package com.resign.carl.command.example2.api;

/**
 * Created by carl.zhao on 2016/6/15.
 */
public class Stereo {

    private String roomname;

    public Stereo(String roomname){
        this.roomname = roomname;
    }
    public void on(){
        System.out.println(roomname + "的音响打开了.");
    }
    public void setCD(){
        System.out.println(roomname + "的音响已经放入了CD");
    }
    public void setVolume(int volume){
        System.out.println(roomname + "的音响声音设置为" + volume);
    }
}
